﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Media;
using System.Text;
using System.Windows.Forms;

namespace 跑马灯
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            string str = label1.Text.Trim();
            str = str.Substring(1)+str[0];
            label1.Text = str;
             
            label2.Text = DateTime.Now.ToString();
            if (DateTime.Now.Hour == 16 && DateTime.Now.Minute == 44 && DateTime.Now.Second == 00)
            {
                SoundPlayer sd = new SoundPlayer();
                sd.SoundLocation = "卓依婷 - 明天会更好.wav";
                sd.Play();
            }
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            label2.Text = DateTime.Now.ToString();
        }
    }
}
